Skip to content

fix: set NODE_ENV to production when args.dev is false#1276

Merged
jbroma merged 2 commits intomainfrom
fix/set-node-env
Aug 26, 2025
Merged

fix: set NODE_ENV to production when args.dev is false#1276
jbroma merged 2 commits intomainfrom
fix/set-node-env

Conversation

@jbroma
Copy link
Copy Markdown
Contributor

@jbroma jbroma commented Aug 26, 2025

Summary

Currently, neither NODE_ENV nor BABEL_ENV is set when running either of Re.Pack commands - this PR changes this so that if args.dev is explicitly false, we set NODE_ENV to production and development otherwise

Test plan

  • - testers work
  • - tests pass

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 26, 2025

🦋 Changeset detected

Latest commit: fd24570

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@callstack/repack Patch
@callstack/repack-plugin-expo-modules Patch
@callstack/repack-plugin-nativewind Patch
@callstack/repack-plugin-reanimated Patch
@callstack/repack-dev-server Patch
@callstack/repack-init Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
repack-website Ready Ready Preview Comment Aug 26, 2025 7:55pm

@jbroma jbroma merged commit 4de8bef into main Aug 26, 2025
6 checks passed
@jbroma jbroma deleted the fix/set-node-env branch August 26, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant